home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000316_amos-request@svcs1.digex.net_Sat Sep 27 07:27:00 1997.msg < prev    next >
Text File  |  1997-10-01  |  4KB  |  94 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id HAA07632
  3.     for <mcox@access.digex.net>; Sat, 27 Sep 1997 07:26:59 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id FAA08468
  6.     for amos-out; Sat, 27 Sep 1997 05:25:40 -0400 (EDT)
  7. Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id FAA08465
  9.     for <amos-list@svcs1.digex.net>; Sat, 27 Sep 1997 05:25:39 -0400 (EDT)
  10. Received: from psln1.psln.com (psln.com [206.99.118.101])
  11.     by mail4.access.digex.net (8.8.5/8.8.5) with SMTP id FAA27389
  12.     for <amos-list@access.digex.net>; Sat, 27 Sep 1997 05:25:38 -0400 (EDT)
  13. Received: from LOCALNAME by psln1.psln.com via SMTP (951211.SGI.8.6.12.PATCH1502/951211.SGI.AUTO)
  14.     for <amos-list@access.digex.net> id CAA18022; Sat, 27 Sep 1997 02:18:55 -0700
  15. Message-ID: <342A22D4.4062@psln.com>
  16. Date: Thu, 25 Sep 1997 01:37:40 -0700
  17. From: "John F. Rodgers" <jfr@psln.com>
  18. X-Mailer: Mozilla 2.02E-KIT  (Win16; U)
  19. MIME-Version: 1.0
  20. To: amos-list@access.digex.net
  21. Subject: Set Bob doesn't work right
  22. Content-Type: text/plain; charset=us-ascii
  23. Content-Transfer-Encoding: 7bit
  24. Status: O
  25. X-Status: 
  26.  
  27. Hello,
  28.  
  29. I've been working with fonts and bobs in AmosPro.  By trial and error, I discovered that 
  30.  setting a font, gr writing mode, or ink color only affects the current screen.  The 
  31. user manual doesn't mention this.  Little things like this can waste a lot of time when 
  32. your program doesn't perform as it ought to, because the commands don't perform as they 
  33. are advertised.
  34.  
  35. Well, the same thing has happend with bobs.  I am trying to render out some text with 
  36. outline and shadow.  My intent was to render it in color 7 (all bitplanes in 8 color 
  37. mode), pick it up as a bob (#1), then set the bob mask screen planes to whatever color I 
  38. want to stamp down.  It works if I position the bob with Bob 1,x,y,1 and then Put Bob.  
  39. But only the first time.  Subsequent Bob masks do not perform properly.  I even tried 
  40. picking up the bob again before setting the mask.  It still fails to perform as it 
  41. ought.  Here is the code of a short test program:
  42.  
  43. Screen Open 0,320,200,8, : Curs Off : Flash Off
  44. Screen 0
  45. Cls 0
  46. Palette $000,$222,$444,$666,$888,$AAA,$CCC,$EEE
  47.  
  48. Ink 7
  49. Bar 0,150 To 49,159 : Rem Draw the image using all bitplanes (Color 7)
  50.  
  51. Get Bob 0,1,0,150 To 49,159
  52.  
  53. For C=1 To 7
  54. Set Bob 1,-1,C,%11001010 : Rem Transparent color zero, BG redraw off
  55. Bob 1,C*20,c*20,1
  56. Put Bob
  57. Wait Vbl
  58. Next C
  59.  
  60. Wait Key
  61.  
  62. Edit
  63.  
  64.  
  65. When I run this, all seven bob stampings use the first color mask value.  In this case, 
  66. all of them are stamped in color zero (invisible against color zero BG).  Changing the 
  67. loop to "For C=2 To 7" causes the bob to be drawn in color 2 seven times.
  68.  
  69. I thought perhaps picking the bob up each time might help, so I moved the line which 
  70. picks up the bob to right before the Set Bob line, as follows:
  71.  
  72. ...etc...
  73.  
  74. For C=0 To 7
  75. Get Bob 0,1,0,150 To 49,159
  76. Set Bob 1,-1,C,%11001010 : Rem Transparent color zero... etc
  77.  
  78. ...etc...
  79.  
  80. This performs exactly as the original version, except for the extra time it takes to get 
  81. the bob each time.
  82.  
  83. Does anyone know what is happening here?  Am I missing something obvious?  I am tearing 
  84. hair out over these bobs.  What is the best way to pick up a single-color image and 
  85. stamp it down in different colors?  What about Screen Copy?  Isn't there some sort of 
  86. command which will just do a blitter operation, without bob banks and so forth?  It 
  87. seems logical that an image using all bitplanes can be masked to draw any color you 
  88. want.  Why can't I?
  89.  
  90. Sincerely,
  91.  
  92. John F. Rodgers
  93. jfr@psln.com
  94.